package springcloud_nacos_openfeign.controller;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

//调用该服务的方法失败时，会调用fallback
@FeignClient(name = "springcloud-nacos-provider",fallback = RemoteHystrix.class)
public interface Remote {

    @GetMapping("/hello")
    String helloNacos();
}